/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package log4j;

import java.io.IOException;
import org.apache.log4j.Logger;
import java.util.logging.FileHandler;
import java.util.logging.Level;

/**
 *
 * @author Minh
 */
public class Log4J {

    /**
     * @param args the command line arguments
     */
   static Logger log = Logger.getLogger(Log4J.class.getName());
   
/**
 * @param args the command line arguments
 */
 public static void main(String[] args) {
 //logging in different levels
 log.trace("This is a Trace");
 log.debug("This is a Debug");
 log.info("This is an Info");
 log.warn("This is a Warn");
 log.error("This is an Error");
 log.fatal("This is a Fatal");
 }
   
}
